-
Notifications
You must be signed in to change notification settings - Fork 400
Multichain layout prod #1808
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multichain layout prod #1808
Conversation
… first deposit flag
…r in GmxAccountModal
… settlement and multichain claims, including nonce management and transaction signing enhancements.
…in useMultichainEvents and integrate it into useMultichainFundingToast for toast closure handling.
…simplifying state dependencies for button text logic.
…csEventsProvider, adding support for multichain actions and refining local action updates based on transaction parameters.
…al, refactoring to separate handling for settlement and multichain claims, enhancing transaction signing and nonce management.
…mproved error handling and user feedback for claiming fees, including toast notifications for success and failure states.
…rySection to display formatted date with comma
…veDateWithComma for improved user experience, updating display logic for sent timestamps.
… functionality for error toast notifications when minimum balance warnings are triggered.
…izing imports for improved code clarity and performance.
…o multichain-layout-prod
…ace into multichain-layout-prod
…o multichain-layout-prod
vite.config.ts
Outdated
@@ -50,7 +50,7 @@ export default defineConfig(({ mode }) => { | |||
build: { | |||
assetsInlineLimit: 0, | |||
outDir: "build", | |||
sourcemap: true, | |||
sourcemap: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will remove to true
tsconfig.json
Outdated
@@ -27,5 +27,5 @@ | |||
} | |||
}, | |||
"references": [{ "path": "./sdk" }], | |||
"include": ["src", "scripts", "sdk/src/utils/twap/twap"] | |||
"include": ["src", "scripts", "sdk/src/utils/trade/decrease.ts"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deleted and left only two first
…ace into multichain-layout-prod
package.json
Outdated
"typescript": "5.4.2", | ||
"use-context-selector": "1.4.1", | ||
"viem": "2.7.20", | ||
"viem": "2.26.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will update to 2.7.20
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated to 2.37.1
…ace into multichain-layout-prod
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not used. will delete
// isTaken: !isAddressZero(ownerOnOtherNetwork), | ||
// isTakenByCurrentUser: | ||
// !isAddressZero(ownerOnOtherNetwork) && ownerOnOtherNetwork.toLowerCase() === account.toLowerCase(), | ||
// }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, deleted code comments
}; | ||
}; | ||
|
||
export function getUSDValue(value, decimals = 2) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getUSDValue -> getUsdValue
isn't it redundant function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
renamed but the amount of usages justifies wrapping imo
<br /> | ||
<br /> | ||
You sign each transaction on-chain using your own RPC, typically provided by your wallet. Gas | ||
payments in ETH. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be "BTC" for botanix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indeed, will fix here and below
// onSelectToken(filteredTokens[0]); | ||
// } | ||
// } | ||
// }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be implemented?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
// resetSubaccountApproval(); | ||
// } else { | ||
// refreshSubaccountData(); | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no
|
||
export function isStepGreaterOrEqual( | ||
step: MultichainFundingHistoryItem["step"], | ||
than: MultichainFundingHistoryItem["step"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
than -> next
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why next?
its not then its than
const amountReceivedLD = quoteOft?.receipt.amountReceivedLD as bigint; | ||
|
||
// ETH is the same as the source chain | ||
// TODO: check if this is correct |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO
|
||
// factorByTime > factorByAccount |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it TODO?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
@@ -28,7 +28,7 @@ export async function getGasLimit( | |||
} | |||
|
|||
if (gasLimit < 22000) { | |||
gasLimit = 22000n; | |||
gasLimit = 220000n; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't it be 22_000n
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indeed
[ARBITRUM]: "arbitrum", | ||
[AVALANCHE]: "avalanche", | ||
[AVALANCHE_FUJI]: "fuji", | ||
// [BASE_MAINNET]: "base", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indeed
No description provided.